/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entidades;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Oswl_C
 */
@Entity
@Table(name = "result_test", catalog = "lecturadb", schema = "")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "ResultTest.findAll", query = "SELECT r FROM ResultTest r"),
    @NamedQuery(name = "ResultTest.findByRteCodigo", query = "SELECT r FROM ResultTest r WHERE r.rteCodigo = :rteCodigo"),
    @NamedQuery(name = "ResultTest.findByAluCedula", query = "SELECT r FROM ResultTest r WHERE r.aluCedula = :aluCedula"),
    @NamedQuery(name = "ResultTest.findByRalCodigo", query = "SELECT r FROM ResultTest r WHERE r.ralCodigo = :ralCodigo"),
    @NamedQuery(name = "ResultTest.findByIteCodigo", query = "SELECT r FROM ResultTest r WHERE r.iteCodigo = :iteCodigo")})
public class ResultTest implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "RTE_CODIGO")
    private Integer rteCodigo;
    @Column(name = "ALU_CEDULA")
    private String aluCedula;
    @Column(name = "RAL_CODIGO")
    private Integer ralCodigo;
    @Column(name = "ITE_CODIGO")
    private Integer iteCodigo;

    public ResultTest() {
    }

    public ResultTest(Integer rteCodigo) {
        this.rteCodigo = rteCodigo;
    }

    public Integer getRteCodigo() {
        return rteCodigo;
    }

    public void setRteCodigo(Integer rteCodigo) {
        this.rteCodigo = rteCodigo;
    }

    public String getAluCedula() {
        return aluCedula;
    }

    public void setAluCedula(String aluCedula) {
        this.aluCedula = aluCedula;
    }

    public Integer getRalCodigo() {
        return ralCodigo;
    }

    public void setRalCodigo(Integer ralCodigo) {
        this.ralCodigo = ralCodigo;
    }

    public Integer getIteCodigo() {
        return iteCodigo;
    }

    public void setIteCodigo(Integer iteCodigo) {
        this.iteCodigo = iteCodigo;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (rteCodigo != null ? rteCodigo.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof ResultTest)) {
            return false;
        }
        ResultTest other = (ResultTest) object;
        if ((this.rteCodigo == null && other.rteCodigo != null) || (this.rteCodigo != null && !this.rteCodigo.equals(other.rteCodigo))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "entidades.ResultTest[ rteCodigo=" + rteCodigo + " ]";
    }
    
}
